extends Node2D
@onready var simple: Button = $CanvasLayer/Panel/HBoxContainer/VBoxContainer/Simple
@onready var normal: Button = $CanvasLayer/Panel/HBoxContainer/VBoxContainer/Normal
@onready var difficulty: Button = $CanvasLayer/Panel/HBoxContainer/VBoxContainer/Difficulty

func _ready() -> void:
	simple.button_up.connect(_on_button_up_event.bind(3))
	normal.button_up.connect(_on_button_up_event.bind(2))
	difficulty.button_up.connect(_on_button_up_event.bind(1))

func _on_button_up_event(count : int) -> void :
	if GlobelFileRw.disable_play : return
	GlobelFileRw.try_count = count
	get_tree().call_deferred("change_scene_to_file","res://scene/main.tscn")
	
